package code.structure.module.scene.view.iso
{
	import code.main.AppData;
	import code.structure.module.scene.view.YIsoWorld;
	import code.untils.SceneConfig;

	/**
	 *功能性建筑物 
	 * @author Yuri
	 * 
	 */
	public class FunctionBuildingIsoObject extends YIsoObject
	{
		
		public function FunctionBuildingIsoObject()
		{
			super();
			_isBodyAnimation = true;
			_isNeedDelayIntervelAnimation = false;
			mouseTipEnable = true;
		}
		
		override protected function mainBodyLoadCompleteNext():void{
			super.mainBodyLoadCompleteNext();
		}
		
		/**
		 *更新鼠标响应属性 
		 * 
		 */
		override public function refreshEnable():void{
			isResponseMouse = AppData.isMyScene;
		}
		
		/**
		 *这里需要知道解锁对其他的影响 要放到场景对象中进行处理 
		 * @param value
		 * 
		 */
		override public function set isUnlock(value:Boolean):void{
			super.isUnlock = value;
			if(AppData.isMyScene && isUnlock && parentWorld && data && data.data){
				(parentWorld as YIsoWorld).infoManager.functionBuildingUnlock(data.data.itemType);
			}
		}
	}
}